﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeterialInputCheck.aspx.cs" Inherits="Hisun.View.DataExchange.MeterialInputCheck" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">原材料导入数据检查</div></div>
    <div class ="CommonPage_Body">

    
        <table >
            <tr>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_Check" runat="server" onclick="Button_Check_Click" 
                        Text="数据检查" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="车间编码：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_WorkShop" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label2" runat="server" SkinID="Label" Text="产品ID："></asp:Label>
                    <asp:TextBox ID="TextBox_ProductID" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label13" runat="server" SkinID="Label" Text="材料ID："></asp:Label>
                    <asp:TextBox ID="TextBox_MeterialID" runat="server" SkinID="TextBox"></asp:TextBox>
                       <br />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label14" runat="server" SkinID="Label" Text=" 领料单号："></asp:Label>
                    <asp:TextBox ID="TextBox_BillNumber" runat="server" SkinID="TextBox"></asp:TextBox>
                 
                    <asp:Label ID="Label15" runat="server" SkinID="Label" Text="领用人/作业中心："></asp:Label>
                    <asp:TextBox ID="TextBox_CenterName" runat="server" SkinID="TextBox"></asp:TextBox>
                 
                    <asp:CheckBox ID="CheckBox_OnlyErrorRow" runat="server" SkinID="CheckBox" 
                        Text="数据检查未通过" />
                    <asp:CheckBox ID="CheckBox_Zero" runat="server" SkinID="CheckBox" Text="金额为零" />
                    <asp:Button SkinID = "Button" ID="Button_Search" runat="server" onclick="MyClick" 
                        Text="查询" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_Main" runat="server" Visible="False"> <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                                    onclick="MyClick">&lt;&lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                                    onclick="MyClick"> &lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                                    onclick="MyClick">&gt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                                    onclick="MyClick"> &gt;&gt;</asp:LinkButton>
                                <asp:Label ID="Label_Total" runat="server" Text="共："></asp:Label>
                                <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到"></asp:Label>
                                <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                                <asp:Label ID="Label11" runat="server" Text="页"></asp:Label>
                                <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                                    ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                                    MinimumValue="1" Type="Integer"></asp:RangeValidator>
                                <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                                    onclick="MyClick" Text="GO" />
                        <asp:GridView ID="GridView_MeterialQuery" runat="server"  skinid="GridView"
                        AutoGenerateColumns="False" 
    onselectedindexchanged="GridView_MeterialQuery_SelectedIndexChanged">
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                                <asp:BoundField DataField="领料单号" HeaderText="领料单号" />
                                <asp:BoundField DataField="产品ID" HeaderText="产品ID" ReadOnly="True" 
                                SortExpression="产品ID" />
                                <asp:BoundField DataField="产品名称" HeaderText="产品名称" ReadOnly="True" 
                                SortExpression="产品名称" />
                                <asp:BoundField DataField="出库日期" HeaderText="出库日期" ReadOnly="True" 
                                SortExpression="出库日期" />
                                <asp:BoundField DataField="材料编码" HeaderText="材料编码" ReadOnly="True" 
                                SortExpression="材料编码" />
                                <asp:BoundField DataField="材料名称" HeaderText="材料名称" ReadOnly="True" 
                                SortExpression="材料名称" />
                                <asp:BoundField DataField="计量单位" HeaderText="计量单位" ReadOnly="True" 
                                SortExpression="计量单位" />
                                <asp:BoundField DataField="数量" HeaderText="数量" ReadOnly="True" 
                                SortExpression="数量" />
                                <asp:BoundField DataField="金额" DataFormatString="{0:f2}" HeaderText="金额" />
                                <asp:BoundField DataField="中间体" HeaderText="中间体" HtmlEncode="False" />
                                <asp:BoundField DataField="可用" HeaderText="可用" HtmlEncode="False" />
                                <asp:TemplateField HeaderText="领用人/作业中心" SortExpression="领用人">
                                    <EditItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("领用人") %>'></asp:Label>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_Center" runat="server" Text='<%# Eval("领用人") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button SkinID = "Button" ID="Button_Save" runat="server" CommandArgument='<%# Eval("ID") %>' 
                                        oncommand="Button_Save_Command" Text="保存" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <asp:Label ID="Label_Sum" runat="server" SkinID="Label"></asp:Label>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                </td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<% = alert %>